//
// Navigation menu/header
// --------------------------------------------------
.header {
  .navbar;
  .navbar-default;
  .navbar-fixed-top;
   .search_form {
    margin-right: 10px;
    margin-top: 5px;
    @media (min-width: @screen-md-min) {
      margin-right: 30px;
    }
  }
}

.header_logo{
  .navbar-brand;
  background: url(images/logo.png) no-repeat 15px 15px transparent;
  height: 50px;
  width: 150px;
  @media (min-width: @screen-md-min) {
    margin-right: 20px;
  }
}

.header_slogan {
  .visible-lg;
  color:  @nav-menu-color;
  float: left;
  padding-top: 19px;
  margin-right: 90px;
}

.nav-menu {
  .nav;
  .navbar-nav;

  & > li > a {
    color: @nav-menu-color;
    font-size: 12px;
    font-weight: bold;
    padding-top: 20px;
    padding-bottom: 10px;
    text-transform: uppercase;
    &.active {
      background-color: @nav-link-hover-bg;
    }    
  }
  .header-submenu_popup {
    border-radius: 0;
    text-align: left;
  }
}
.nav-menu-right {
  .nav;
  .navbar-nav;

  & > li > a {
    &.user_profile {
      padding: 5px 20px 5px 10px;

      &:hover,
      &:focus,
      &:active,
      &.active {
        background-color: @header-submenu-bg;
        color: @nav-menu-color;
      }
    }
  }
}

.search_form {
  .clearfix;
  display: block;
  position: relative;

  .btn-search {
    .button-primary;
    cursor: pointer;
    padding: 0;
    position: relative;
    height: 40px;
    width: 40px;
    .el-icon-search {
      font-size: 26px;
      position: absolute;
      top: 6px;
      left: 6px;
    }
  }
  .field-search {
    display: none;
    position: absolute;
    right: 40px;
    top: 0;
    margin-right: 5px;
    width: 250px;

    input {
      .form-control;
      height: 40px;
    }
    @media (min-width: 850px) and (max-width: @screen-sm-max) {
      width: 600px;
    }
    @media (min-width: @screen-sm-min) and (max-width: 850px) {
      width: 445px;
    }
    @media  (max-width: @screen-xs-max) {
      width: 300px;
    }

    input {
      .form-control;
      height: 40px;
    }
  }
  @media (max-width: @screen-xs-max) {
    .btn-search {
      float: right;
    }
  }


}

.user_profile {
  color: @nav-menu-color;

  img {
    background-color: #fff;
    border-radius: 50px;
    display: inline-block;
    height: 40px;
    margin-left: 5px;
    width: 40px;
  }
}

.user_login {
  color: @nav-menu-color;
  &:hover,
      &:focus,
      &:active,
      &.active {
        color: @nav-menu-color;
      }
}
//
// User menu
// ------------------------

.user-menu {
  background-color: @header-submenu-bg;
  border-bottom: 1px solid @border-color;
  color:  @nav-menu-color;
  display: none;
  height: auto;
  position: absolute;
  width: 100%;

  li > a {
    color:  @nav-menu-color;
    display: inline-block;
      &:hover {
      text-decoration: none;
    }
  }
  li > a.adminfunc {
    color:#CACACA;
    font-style: italic;
  }  
  .container {
    position: relative;
    padding: 0;
  }

 @media (min-width: @screen-xs-min) {
    height: 51px;
  }

  @media (min-width: @screen-sm-min) {
    .header-submenu_popup {
      text-align: right;
      width: 150px;    
    }
  }
}

.user-menu_i {
  list-style: none;
  margin: 0;
  padding: 0;
  &.__left {
    @media (min-width: @screen-xs-min) {
      float: left;
    }
  }
  &.__right {
    @media (min-width: @screen-xs-min) {
      float: right;
    }
  }
  & > li {
    display: inline-block;
    width: 100%;    
    @media (min-width: @screen-xs-min) {
      float: left;
      width: auto;
    }

    & > a {
      width: 100%;
      cursor: pointer;
      &:hover,
      &:focus,
      &:active,
      &.active {
        background-color: @user-menu-hover-bg;
      }
      @media (min-width: @screen-xs-min) {
        width: auto;
      }
    }
  }
}
.nav-menu_catalog .header-submenu_popup{
  min-width: 400px;

}

.user-menu_time a {
  background-color: @user-menu-time-bg;
  padding: 15px 30px;
  margin-right: 1px;
}

.user-menu_mail{ 
  a {
    padding: 12px 15px;
    span {
      font-size: 26px;
      color: @orange-color;
      margin-right: 5px;
      vertical-align: middle;    
    }
  }

  &.__my {
    span {
      color: @blue-color;
    }
  }

  &.active {
    position: relative;
    a {
      background-color: @orange-color !important;
    }
      &.__my {
        a {
          background-color: @blue-color !important;
        }
        &:after {
          border-top: 4px solid @blue-color;
        }
      }
      span {
        color: #fff;
      }
    &:after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      margin-left: -4px;
      margin-bottom: -4px;
      border-left: 4px solid transparent;
      border-top: 4px solid @orange-color;
      border-right: 4px solid transparent;
      z-index: 5;
    } 
  }
}
.user-menu_count a {
  background: url(images/money_icon.png) no-repeat 15px 12px transparent;
  padding: 15px 10px 15px 50px;
}
.user-menu_count_nmb {
  font-weight: bold;
}
.user-menu_moremoney a{  
  padding: 15px 10px;
  text-decoration: underline;
}
.user-menu_name a{
  padding: 15px 10px;
}
.user-menu_settings {
  position: relative;
}
.user-menu_settings_icon{
  background: url(images/settings_icon.png) no-repeat 12px 12px transparent;
  cursor: pointer;
  padding: 25px;
  &:hover,
  &.active {
    background-position: 12px -38px;
  }
}
.header-submenu_popup {  
  background-color: @user-menu-hover-bg; 
  display: none; 
  list-style: none;
  margin: 0;
  padding: 5px 0 0 0;
  position: absolute;  
  right: 0;
  text-align: left;
  top: 50px;
  width: 100%;
  overflow:hidden;

  > li > a {    
    border-bottom: 1px solid @settings-menu-separator;
    color: @nav-menu-color;
    cursor: pointer;
    display: block;
    font-size: 12px;
    font-weight: bold;
    padding: 10px 20px;
    text-transform: uppercase;
    &:hover{
      background-color: @user-menu-hover-bg;
      color: @settings-menu-hover;
    }
  }
}


@media (min-width: @screen-xs-min) and (max-width: @screen-sm-max) {
  .user-menu_name,
  .user-menu_count_text,
  .user-menu_time span {
    .hidden;
  }
  .user-menu_time a {
    padding: 15px 10px;
  }
}

//
// Submenu of navigation menu
// ------------------------

.navmenu_submenu {
  background-color: @nav-link-hover-bg;
  color:  @nav-menu-color;
  display: none;  
  height: 270px;
  position: absolute;
  width: 100%;

  h2{
    font-size: 18px;
    margin-bottom: 10px;
  }
  a {
    &,
    &:hover,
    &:active,
    &:focus {
      color:  @nav-menu-color;
    }
  }
}

.navmenu_submenu_i {
  display: inline-block;
}

.navmenu_submenu_list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 350px;

  li {
    float: left;
    margin: 10px 0;    
    width: 50%;
  }
}

.authTopItem, .noAuthTopItem {display:none;}